package cn.xshi.monitor.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.xshi.common.base.BaseEntity;
import lombok.Data;

/**
 * @Desc 设备配置
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@Data
@ApiModel(value="设备配置对象", description="设备配置")
public class IotDeviceConfig extends BaseEntity{

	@ApiModelProperty(value = "主键")
	private String id;/**主键**/

	@ApiModelProperty(value = "ip地址")
	private String ip;/**ip地址**/

	@ApiModelProperty(value = "端口")
	private int port;/**端口**/

	@ApiModelProperty(value = "用户名")
	private String userName;/**用户名**/

	@ApiModelProperty(value = "密码")
	private String password;/**密码**/

	@ApiModelProperty(value = "摄像机对应视频服务器的通道号（只用于摄像机）")
	private int channelNo;/**摄像机对应视频服务器的通道号（只用于摄像机）**/

	@ApiModelProperty(value = "设备id")
	private String deviceId;/**设备id**/

	@ApiModelProperty(value = "rtsp取流端口")
	private int rtspPort;/**rtsp取流端口**/

	@ApiModelProperty(value = "NVR存储通道号")
	private int nvrChannel;/**NVR存储通道号**/

	@ApiModelProperty(value = "通信协议：udp,tcp,rtu等等")
	private String protocol;/**通信协议：udp,tcp,rtu等等**/

	@ApiModelProperty(value = "设备")
	private IotDevice iotDevice;/**设备**/

	@ApiModelProperty(value = "类型（摄像机：0海康1大华2宇视，其它：待定） 已废弃")
	private int type;/**类型（摄像机：0海康1大华2宇视，其它：待定）已废弃**/

	@ApiModelProperty(value = "码流类型0主码流1子码流2辅码流（默认子码流）")
	private Integer subtype=1;//码流类型0主码流1子码流2辅码流（默认子码流）

	@ApiModelProperty(value = "是否采用自定义rtsp：0否1是")
	private Integer useRtspFull;//是否采用自定义rtsp：0否1是

	@ApiModelProperty(value = "自定义rtsp")
	private String rtspFull;//自定义rtsp

	@ApiModelProperty(value = "摄像机厂商类型")
	private String cameraTypeId;/**摄像机厂商类型**/

	@ApiModelProperty(value="相机厂商类型",required=true)
	private IotCameraType iotCameraType;
}
